#include("templates/layout.html")
#@layout()

#define seo_title()
#seoTitle(COLUMN.seoTitle??, "资讯") - #seo("seo_title")
#end

#define seo_keywords()
#seoMetaKeywords(COLUMN.seoMetaKeywords??)
#end

#define seo_description()
#seoMetaDescription(COLUMN.seoMetaDescription??)
#end

#define import_head_cssjs()
<link rel="stylesheet" href="./css/news.css">
#end

#define body_class()auto-foot-ct#end

#define body()
	<div class="auto-contanter" data-head-fiexd="true">
	<!-- 导航 -->
	<div class="nav-ct">
		<nav id="newsNav">
			<div class="swiper-wrapper">
				<a href="#(ctx)/category/news.html" class="swiper-slide#if(!id) active#end">全部资讯</a>
		#newsCategoryList()
			#for(newsCategory : newsCategoryList)
				<a href="#(ctx)/category/news-#(newsCategory.id).html" class="swiper-slide#if(id == newsCategory.id) active#end">#(newsCategory.name)</a>
			#end
		#end
			</div>
		</nav>
	</div>
	<!-- 资讯列表 -->
	<div class="article-container news-list">
		#newsPage(categoryId=id)
		<ul>
			#for(news : newsPage.list)
			<li class="news-item clearfix poi">
				<a target="_blank" href="#if(news.url)#(news.url)#else#(ctx)/detail/news-#(news.id).html#end">
					<img class="item-img db" src="#if(isMobile && news.imgH5)#(news.imgH5)#else#(news.img)#end" alt="#(news.title)" srcset="">
				</a>
				<div class="text-cts">
					<div class="f16 time">
						<img class="vm dib" src="./images/time-icon.jpg" alt="" srcset="">
						<span class="vm dib">#date(news.editedTime, "yyyy-MM-dd")</span>
					</div>
					<h2 class="title">
						<a target="_blank" href="#if(news.url)#(news.url)#else#(ctx)/detail/news-#(news.id).html#end">
							<span class="red-bd">#(news.title)</span>
						</a>
					</h2>

					<p class="description">
						<a target="_blank" href="#if(news.url)#(news.url)#else#(ctx)/detail/news-#(news.id).html#end">#(news.subtitle)</a>
						<a class="more" target="_blank" href="#if(news.url)#(news.url)#else#(ctx)/detail/news-#(news.id).html#end">[更多]</a>
					</p>
					<p class="news-label">
						<span>标签：</span>
						#for(tag : news.tagList)
						<a target="_blank" href="#(ctx)/result/search.html?word=#(tag)" class="s-label">#(tag)</a>
						#end
					</p>
					<div class="news-share hidden-xs">
						<div class="se1">
							<img class="dib vm" src="./images/share-yuan.jpg" alt="" srcset="">
							<span class="dib vm">分享消息</span>
						</div>
						<div class="se2 f0">
							#include("templates/share.html")
						</div>
					</div>
				</div>
			</li>
			#end
		</ul>
		<!-- 分页 -->
		<div class="v-pagination page-ct" data-page-num="#(newsPage.pageNumber)" data-page-size="#(newsPage.totalPage)" data-page-name="pageNumber">
			<span class="v-page prev">
				<span class="iconfont">&#xe605;</span>
			</span>
			<span class="v-page active">1</span>
			<a class="v-page" href="#">3</a>
			<a class="v-page next" href="#">
				<span class="iconfont">&#xe633;</span>
			</a>
		</div>
		#end
	</div>

		<!-- 无搜索内容 -->
		<!-- <div class="tc no-data f14">
      暂无该分类内容
    </div> -->
		<div class="height10bg"></div>
	</div>
#end

#define import_foot_js()
	<script src="./js/lib/social-share.min.js"></script>
	<script src="./js/news.min.js"></script>
#end